.TH swilgt 1 "May 2, 2025" "Logtalk 3.92.0" "Logtalk Documentation"

.SH NAME
swilgt \- Logtalk integration script for SWI-Prolog

.SH SYNOPSIS
.B swilgt
[\fB-q\fR]
[\fB-g \fIgoal\fR]

.SH DESCRIPTION
\fBswilgt\fR is a Logtalk integration script for SWI-Prolog. It automatically loads the SWI-Prolog adapter file, the Logtalk compiler and runtime, the Logtalk default table of library names and paths, and any existing settings file found on the lookup directories. It uses the \fBswipl\fR executable \fB-s\fR option to load the Logtalk files. It passes any options to the \fBswipl\fR executable; see the SWI-Prolog documentation for the available options.

.SH OPTIONS
The two most common options are:
.TP
.B \-q
Silence Logtalk default startup messages and compilation messages by setting the \fBreport\fR flag to \fBwarnings\fR.
.TP
.B \-g
.I goal
Initialization goal, written between double quotes, to be executed after Logtalk startup.

.SH REQUIREMENTS
SWI-Prolog 6.6.0 or later is required. This integration script looks for a \fBswipl\fR executable in the system path.

.SH ENVIRONMENT
.TP
.B LOGTALKHOME
Specifies the location of the Logtalk installation.
.TP
.B LOGTALKUSER
Specifies the location of the Logtalk user directory.

.SH FILES
.TP
.BI $LOGTALKHOME/integration/logtalk_swi.pl
Prolog file used for loading the necessary files for starting Logtalk using SWI-Prolog as the backend compiler.
.TP
.BI $LOGTALKHOME/adapters/swi.pl
The SWI-Prolog adapter file.
.TP
.BI $LOGTALKHOME/core/core.pl
The Logtalk core compiler and runtime file.
.TP
.BI $LOGTALKHOME/paths/paths.pl
The default table of library names and paths.
.TP
.BI $LOGTALKHOME/adapters/swihooks.pl
Hooks file for supporting loading Logtalk entities using SWI-Prolog load_files/2 and consult/1 predicates and to support edit/1 and make/0.
.TP
.BI ./settings.lgt
Logtalk settings file (for overriding default settings in the adapter files). It may not exist.
.TP
.BI $LOGTALKUSER/settings.lgt
Logtalk settings file (for overriding default settings in the adapter files). It may not exist.
.TP
.BI $HOME/settings.lgt
Logtalk settings file (for overriding default settings in the adapter files). It may not exist.
.TP
.BI $XDG_CONFIG_HOME/logtalk/settings.lgt
Logtalk settings file (for overriding default settings in the adapter files). It may not exist.
.TP
.BI $HOME/.config/logtalk/settings.lgt
Logtalk settings file (for overriding default settings in the adapter files). It may not exist.

.SH "SEE ALSO"
The Logtalk website at https://logtalk.org/
.PP
The Logtalk Handbook at \fB$LOGTALKHOME/docs/handbook/index.html\fR
.PP
The SWI-Prolog website at http://www.swi-prolog.org/
.PP
logtalk_user_setup(1),\ logtalk_version_select(1),\ logtalk_backend_select(1)

.SH AUTHOR
Paulo Moura <pmoura@logtalk.org>

.SH COPYRIGHT
Copyright (c) 1998-2025 Paulo Moura.
